package net.xdclass.online_xdclass.controller;


import net.xdclass.online_xdclass.service.UserService;

import net.xdclass.online_xdclass.utils.CommonUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("api/v1/pri/other")
public class OtherController {

    @Autowired
    private UserService userService;

    /**
     * test接口
     *
     * @param request
     * @return
     */
    @GetMapping("test")
    public Object test(HttpServletRequest request) {
        System.out.println(CommonUtils.showParams(request));
        Map<String, String> map = new HashMap<>();
        map.put("userId", request.getParameter("user_id"));
        return map;
    }

}
